<div>

    <div class="ibox ">
        <div class="ibox-title">
            <h5>查询条件</h5>
            <div class="ibox-tools" style="top:10px;">
            </div>
        </div>
        <div class="ibox-content">
            <div class="row">
                <div class="col-sm-2">
                    <div class="form-group">
                        <input type="text" placeholder="请输入服务名称" v-model="housekeepingServInfo.conditions.servName"
                            class=" form-control">
                    </div>
                </div>
                <div class="col-sm-2">
                    <div class="form-group">
                        <select class="custom-select" v-model="housekeepingServInfo.conditions.hktId">
                            <option selected disabled value="">请选择服务类型</option>
                            <option v-for="(item,index) in housekeepingServInfo.housekeepingTypes" :value="item.hktId">
                                {{item.hktName}}
                            </option>
                        </select>
                    </div>
                </div>
                <div class="col-sm-2">
                    <div class="form-group">
                        <select class="custom-select" v-model="housekeepingServInfo.conditions.repairWay">
                            <option selected disabled value="">请选择派单方式</option>
                            <option v-for="(item,index) in housekeepingServInfo.repairWays" :value="item.statusCd">
                                {{item.name}}
                            </option>
                        </select>
                    </div>
                </div>
                <div class="col-sm-2">
                    <button type="button" class="btn btn-primary btn-sm" v-on:click="_queryHousekeepingServMethod()">
                        <i class="fa fa-search"></i> 查询
                    </button>
                    <button type="button" class="btn btn-primary btn-sm" v-on:click="_resetHousekeepingServMethod()">
                        <i class="fa fa-repeat"></i> 重置
                    </button>
                </div>
            </div>
        </div>

    </div>

    <div class="ibox">
        <div class="ibox-title">
            <h5>家政服务</h5>
            <div class="ibox-tools" style="top:10px;">
                <button type="button" class="btn btn-primary btn-sm" v-on:click="_openAddHousekeepingServModal()">
                    <i class="fa fa-plus"></i>添加
                </button>
                <button type="button" class="btn btn-primary btn-sm" style="margin-left:10px"
                    v-on:click="_openAddHousekeepingFeeConfigRel('','')">
                    <i class="fa fa-plus"></i>创建费用
                </button>
            </div>
        </div>
        <div class="ibox-content">
            <table class="footable table table-stripped toggle-arrow-tiny" data-page-size="15">
                <thead>
                    <tr>
                        <th class="text-center">服务编号</th>
                        <th class="text-center">服务名称</th>
                        <th class="text-center">服务描述</th>
                        <th class="text-center">服务类型</th>
                        <th class="text-center">派单方式</th>
                        <th class="text-center">回访方式</th>
                        <th class="text-center">销量</th>
                        <th class="text-center">默认费用</th>
                        <th class="text-center">排序</th>
                        <th class="text-center">上架状态</th>
                        <th class="text-center">创建时间</th>
                        <th class="text-center">操作</th>
                    </tr>
                </thead>
                <tbody>
                    <tr v-for="housekeepingServ in housekeepingServInfo.housekeepingServs">
                        <td class="text-center">{{housekeepingServ.servId}}</td>
                        <td class="text-center">{{housekeepingServ.servName}}</td>
                        <td class="text-center">{{housekeepingServ.servDesc}}</td>
                        <td class="text-center">{{housekeepingServ.hktName}}</td>
                        <td class="text-center" v-if="housekeepingServ.repairWay == '100'">抢单</td>
                        <td class="text-center" v-else-if="housekeepingServ.repairWay == '200'">指派</td>
                        <td class="text-center" v-else-if="housekeepingServ.repairWay == '300'">轮训</td>
                        <td class="text-center" v-if="housekeepingServ.returnVisitFlag == '001'">都不回访</td>
                        <td class="text-center" v-else-if="housekeepingServ.returnVisitFlag == '002'">已评价不回访</td>
                        <td class="text-center" v-else-if="housekeepingServ.returnVisitFlag == '003'">都回访</td>
                        <td class="text-center">{{housekeepingServ.sales}}</td>
                        <td class="text-center">{{housekeepingServ.defaultFee}}</td>
                        <td class="text-center">{{housekeepingServ.sort}}</td>
                        <td class="text-center">{{housekeepingServ.state == '1001'?'未上架':'上架'}}</td>
                        <td class="text-center">{{housekeepingServ.createTime}}</td>
                        <td class="text-center">
                            <div>
                                <div class="btn-group">
                                    <button class="btn-white btn btn-xs"
                                        v-on:click="_openEditHousekeepingServModel(housekeepingServ)">修改
                                    </button>
                                </div>
                                <div class="btn-group">
                                    <button class="btn-white btn btn-xs"
                                        v-on:click="_openDeleteHousekeepingServModel(housekeepingServ)">删除
                                    </button>
                                </div>
                                <div class="btn-group">
                                    <button class="btn-white btn btn-xs" v-on:click="_viewServDetail(housekeepingServ)">
                                        <vc:i18n name="查看" namespace="adminProduct"></vc:i18n>
                                    </button>
                                </div>
                            </div>
                            <div>
                                <div class="btn-group">
                                    <button class="btn-white btn btn-xs"
                                        v-on:click="_openHousekeepingFeeConfigManageRel(housekeepingServ)">查看费用
                                    </button>
                                </div>
                                <div class="btn-group">
                                    <button class="btn-white btn btn-xs"
                                        v-on:click="_openHousekeepingServUser(housekeepingServ)">维修师傅
                                    </button>
                                </div>
                            
                            </div>
                        </td>
                    </tr>
                </tbody>
            </table>
            <!-- 分页 -->
            <vc:create path="frame/pagination"></vc:create>
        </div>

    </div>
    <vc:create path="housekeeping/deleteHousekeepingServ"></vc:create>
    <vc:create path="housekeeping/addHousekeepingFeeConfigRel"></vc:create>
</div>